#ifndef MODULO_H
#define MODULO_H

#include <QGraphicsRectItem>
#include <QImage>
#include <QPainter>

class Modulo: public QObject, public QGraphicsRectItem
{
    Q_OBJECT
    Q_PROPERTY(qreal scale READ scale WRITE setScale)
public:
    bool visible;
    Modulo();
    void changeStatus();

protected:
    void paint( QPainter *, const QStyleOptionGraphicsItem *option, QWidget *widget );
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
    void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);

private:
    QImage *modulo_img;
    float itemScale;
    QString *img_path;
};

#endif // MODULO_H
